package com.mobilous.client.project.setup;

import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.AbsolutePanel;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.RadioButton;
import com.mobilous.client.StaticData;

public class DeviceSelection extends Composite {

	public DeviceSelection() {
		
		AbsolutePanel absolutePanel = new AbsolutePanel();
		initWidget(absolutePanel);
		absolutePanel.setSize("794px", "450px");
		
		Image image = new Image("images/ipad.png");
		absolutePanel.add(image, 47, 73);
		image.setSize("268px", "308px");
		
		Image image_1 = new Image("images/iPhone.png");
		absolutePanel.add(image_1, 448, 119);
		image_1.setSize("210px", "209px");
		
		RadioButton rdbtnPad = new RadioButton("new name", "Pad");
		absolutePanel.add(rdbtnPad, 158, 361);
		
		RadioButton rdbtnPhone = new RadioButton("new name", "Phone");
		absolutePanel.add(rdbtnPhone, 514, 361);
		
		Label lblSettingProject = new Label("Project Settings");
		lblSettingProject.setStyleName("gwt-Label-wizard-style");
		absolutePanel.add(lblSettingProject, 0, 0);
		lblSettingProject.setSize("784px", "50px");
		
		Label lblStepOf = new Label("Step 2 of 6: Device Selection");
		lblStepOf.setStyleName("gwt-Label-wizard-subheader");
		absolutePanel.add(lblStepOf, 0, 47);
		lblStepOf.setSize("784px", "18px");
		
		Button btnBack = new Button("Back");
		absolutePanel.add(btnBack, 10, 410);
		
		Button btnNext = new Button("Next");
		absolutePanel.add(btnNext, 741, 410);
		
		Image image_2 = new Image("images/helpicon.png");
		absolutePanel.add(image_2, 752, 10);
		image_2.setSize("32px", "32px");
		
		btnBack.addClickHandler(new ClickHandler() {
			public void onClick(ClickEvent event) {
				StaticData.dialogSetupWizard.clear();
				StaticData.dialogSetupWizard.add(new ApplicationSelection());
			}
		});
		
		btnNext.addClickHandler(new ClickHandler() {
			public void onClick(ClickEvent event) {
				StaticData.dialogSetupWizard.clear();
				StaticData.dialogSetupWizard.add(new ApplicationType());
			}
		});
	}
}
